package com.gupao.adapterdemo.passport.service;

import com.gupao.adapterdemo.passport.Member;
import com.gupao.adapterdemo.passport.ResultMsg;

/**
 * 第三方登录方法,通过适配器模式，进行扩展
 */
public class SigninServiceForThird extends SigninService{
    public ResultMsg<?> loginForWechat(String openid){
        super.register(openid,null);
        super.login(openid,null);
        return new ResultMsg<>(200,"微信登录成功",new Member());
    }
}
